package com.angel.web.health;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.angel.core.util.JsonUtil;
import com.angel.core.util.Pager;
import com.angel.health.BuzFranchisee;
import com.angel.health.BuzInstitutions;
import com.angel.provider.health.BuzInstitutionsProvider;

/**
 * 体检机构
 * @author cheng sir
 *
 */
@Controller
@RequestMapping("institutions")
public class BuzInstitutionsController {
	
	@Autowired
	private BuzInstitutionsProvider buzInstitutionsService;

	@RequestMapping("editInstitutions")
	public String editInstitutions(@ModelAttribute("buzInstitutions")BuzInstitutions buzInstitutions){
		int edit = buzInstitutionsService.updateById(buzInstitutions);
		return JsonUtil.toJson(edit);
	}
}
